package com.frame.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 温湿度传感器日志
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
//@TableName(value = "`tbl_sensirion_log`")
public class TblSensirionLog extends BaseClassEntity implements Serializable {
    /**
     * 网关mac
     */
    @TableField(value = "`gateway_mac`")
    private String gatewayMac;

    /**
     * 设备mac
     */
    @TableField(value = "`device_mac`")
    private String deviceMac;

    /**
     * 温度
     */
    @TableField(value = "`temperature`")
    private Double temperature;

    /**
     * 湿度
     */
    @TableField(value = "`humidity`")
    private Double humidity;

    /**
     * 用户ID
     */
    @TableField(value = "`user_id`")
    private String userId;

    private static final long serialVersionUID = 1L;
}